#ifndef __script_drill__
#define __script_drill__
//************************************************//
if(token.Matches(_("p_drill"))&&(T.GetCount()==5))
{
    IsNotExtFunc = false;

    uint i = uint(calc(T[0]));
    double size = calc(T[1]);

    uint c = uint(calc(T[2]));
    double R = calc(T[3]);
    double Z = calc(T[4]);

    mPointArray P;

    for(uint a=0; a<I[i].Size(); a++)
    {
        if(AER(I[i].ME[a]->r,size,0.001) && I[i].ME[a]->T()==4)
            P.Add(I[i].ME[a]->cp(),true);
    }
    //std::cout << dta.Item(0).ToAscii() << T.P.Size() << "\n";
    if(P.size()==0)
    {
        CODE << wxT("(NO HOLES FOUND)\n");
        break;
    }
    CODE << wxString::Format(wxT("(%d HOLES)\n"),P.size());
    CODE << wxString::Format(_("G99G%dR%1.3fZ%1.3fK0.\n"),c,R,Z);

    P.GetShortestPath();
    for(uint a=0; a<P.size(); a++)
        CODE << wxString::Format(wxT("X%1.3fY%1.3f\n"),P.at(a).x,P.at(a).y);

    CODE << _("G80\n");
    continue;
}
#endif
